{
"created_at": "2026-11-15T01:37:55.751253+00:00",
"data": {
"dian_status_code": "00",
"document_id": "SBX1",
"kind": "invoice",
"reference": "ORDER-1001",
"stage": "sandbox",
"state": "rejected"
},
"id": "94643dee-9c5e-42b3-847a-fe531ab1ff2a",
"type": "invoice.rejected"
}`invoicerejected` delivered to your endpoint
Cufea POSTs this body to every active endpoint subscribed to the event type, from the job worker, once the DIAN outcome is recorded.
Verify X-Cufea-Signature before trusting the body. It is t=<unix seconds>,v1=<hex>:
t is when this attempt was sent (each retry is signed again with a fresh t), and v1 is
the hex HMAC-SHA256 of t, a . and the raw body bytes, keyed with the endpoint’s
signing secret (the UTF-8 bytes of the string returned once by POST /v1/tenant/webhooks).
Compute it over the bytes as received (re-serializing the JSON changes them), compare in
constant time, and reject a t more than 300 seconds away from your clock, either way: that
refuses a captured request replayed later. The header may carry several v1= entries during
a secret rotation; accept the request when any one matches, and ignore unknown keys.
Answer any 2xx within 10 seconds. No answer, 408, 429 or 5xx is retried after 1 min, 5 min,
30 min, 2 h and 6 h; a redirect or any other 4xx fails the delivery at once. Deliveries can
repeat, so deduplicate on the body’s id. Only https URLs on public hosts are delivered to.
{
"created_at": "2026-11-15T01:37:55.751253+00:00",
"data": {
"dian_status_code": "00",
"document_id": "SBX1",
"kind": "invoice",
"reference": "ORDER-1001",
"stage": "sandbox",
"state": "rejected"
},
"id": "94643dee-9c5e-42b3-847a-fe531ab1ff2a",
"type": "invoice.rejected"
}Encabezados
Cuerpo
One event delivery. The body is compact JSON with sorted keys, signed as sent.
Respuesta
Any 2xx marks the delivery delivered.